package com.huaxia.util;


import com.huaxia.exception.BusiException;

/**
 * Created by lp on 2018/5/12.
 */
public class AssertUtil {

    public  static void isTrue(Boolean flag,String msg){
        if(flag){
            throw  new BusiException(msg);
        }
    }

    public static void isTrue(Boolean flag,String msg,Integer code){
        if(flag){
            throw  new BusiException(code,msg);
        }
    }
}
